/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * 
 * 
 *
 * 
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;

using JDCloudSDK.Core.Annotation;

namespace JDCloudSDK.Elite.Model
{

    /// <summary>
    ///  orderPriceProtocolVo
    /// </summary>
    public class OrderPriceProtocolVo
    {

        ///<summary>
        /// 资源id，续费和升降配时必传，其他非必传
        ///</summary>
        public string ResourceId{ get; set; }
        ///<summary>
        /// 资源的类型，取值vm,disk,ip等，具体取值请在对接时联系我们
        ///Required:true
        ///</summary>
        [Required]
        public string ServiceCode{ get; set; }
        ///<summary>
        /// 资源所在区域，取值cn-north-1,cn-east-1,cn-east-2,cn-south-1
        ///Required:true
        ///</summary>
        [Required]
        public string Region{ get; set; }
        ///<summary>
        /// 计费类型，1:按配置 2:按用量 3:包年包月
        ///Required:true
        ///</summary>
        [Required]
        public int BillingType{ get; set; }
        ///<summary>
        /// 资源配置项列表
        ///</summary>
        public List<OrderResourceFormulaVo> Formula{ get; set; }
        ///<summary>
        /// 资源数量
        ///Required:true
        ///</summary>
        [Required]
        public int Count{ get; set; }
        ///<summary>
        /// 资源使用时长
        ///Required:true
        ///</summary>
        [Required]
        public int TimeSpan{ get; set; }
        ///<summary>
        /// 资源使用时长类型，1:小时 2:天 3:月 4:年
        ///Required:true
        ///</summary>
        [Required]
        public int TimeUnit{ get; set; }
        ///<summary>
        /// 资源网络类型，0:无 1:non-BGP 2:BGP，当资源类型是ip时，则需要填写1或者2，其他资源类型填写0
        ///Required:true
        ///</summary>
        [Required]
        public int NetworkOperator{ get; set; }
        ///<summary>
        /// 用户pin，如有优惠用户，则填写优惠用户的pin，否则不用填写
        ///</summary>
        public string Pin{ get; set; }
        ///<summary>
        /// 开始时间，格式：yyyy-MM-dd HH:mm:ss
        ///Required:true
        ///</summary>
        [Required]
        public string StartTime{ get; set; }
        ///<summary>
        /// 结束时间，格式：yyyy-MM-dd HH:mm:ss
        ///</summary>
        public string EndTime{ get; set; }
    }
}
